<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
				xmlns:ui="http://java.sun.com/jsf/facelets"
				xmlns:h="http://java.sun.com/jsf/html"
				xmlns:a4j="http://richfaces.org/a4j"
				xmlns:rich="http://richfaces.org/rich"
				xmlns:f="http://java.sun.com/jsf/core"
				xmlns:t="http://myfaces.apache.org/tomahawk"
				template="/pages/template.xhtml">

	<ui:param name="crudBean" value="#{uploadRemessaVendasBean}" />
	
	<ui:param name="pageTitle" value="#{bundle.titulo_upload_remessa_vendas }" />
	
	<ui:define name="content">
	
		<h:outputText binding="#{crudBean.mensagem}" />
			
		<rich:fileUpload fileUploadListener="#{crudBean.upload}" 
                      immediate="true" acceptedTypes="*"
                      maxFilesQuantity="1" clearControlLabel="Limpar" 
                      clearAllControlLabel="Limpar Todos" uploadControlLabel="Enviar"
                      addControlLabel="Adicionar" doneLabel="Arquivo Enviado!" 
                      style="height: 30px;" listWidth="600px;" listHeight="70px;" 
                      cancelEntryControlLabel="Cancelar" stopEntryControlLabel="Parar"
                      stopControlLabel="Parar"
                      ajaxSingle="true"  >
            <a4j:support event="onuploadcomplete" reRender="panelTitle, formulario" />
			<f:facet name="label">
				<h:outputText value="{_KB}KB de {KB}KB enviados --- {mm}:{ss}" />
        	</f:facet>	
		</rich:fileUpload>
	</ui:define>

</ui:composition>